#pragma once
#include "hiThread.h"
#include "videoOption.h"

namespace Hi {
class RTPDecoderWrapper;
} // namespace Hi

class VideoThreadProxy {
  public:
    VideoThreadProxy() {}

  public:
    bool start(VideoOption &option);
    void stop();

  public:
    void run();

  private:
    void on_receive(const uint8_t *data, size_t len,
                    Hi::RTPDecoderWrapper &decoder);

  private:
    VideoOption *video_option;
    HiThread thread;
};